public class Test{
	int a,b,c;
	public static void main(String []args)
	{
		System.out.println(ty(6));
		
	}
	public static int ty(int num)
    {
        if (num==0)
        return 0;
        return num+ty(num-1);
    }
}